Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@curveball/bodyparser
Advanced tools
This package is a middleware for Curveball. It helps parsing JSON and Text request bodies.
When this middleware is added, it will automatically read all bodies from
requests that have the following values as their Content-Type
header:
application/json
application/*+json
application/x-www-form-urlencoded
text/*
It sets the result of this parsing process to the context.request.body
property. In the case of text bodies, it will result in a string.
In the case of JSON bodies, it will be the result of JSON.parse
on the
body.
npm install @curveball/bodyparser
import { Application } from '@curveball/curveball';
import bodyParser from '@curveball/bodyparser';
const app = new Application();
app.use(bodyParser());
app.use( ctx => {
// Log request bodies
console.log(ctx.request.body);
});
The default export for this package is the bodyParser
function. When called,
this function returns a middleware.
FAQs
A curveball middleware for parsing JSON and Text bodies.
The npm package @curveball/bodyparser receives a total of 401 weekly downloads. As such, @curveball/bodyparser popularity was classified as not popular.
We found that @curveball/bodyparser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.